#pragma once
#include "ITerminal.h"

class CTerminalGroup : public ITerminal
{
public:
	CTerminalGroup();
	virtual ~CTerminalGroup();

public:
	virtual bool			IsGroup() { return true; }

public:
	virtual void			SetParent( ITerminal* Parent )		{ m_pParent = Parent;	}
	virtual ITerminal*		GetParent() const					{ return m_pParent;		}

	virtual void			SetName( std::tstring& strName )	{ m_tstrName = strName;	}
	virtual std::tstring	GetName() const						{ return m_tstrName;	}

	virtual void			SetIP( std::tstring& strIP )		{}
	virtual std::tstring	GetIP()	const						{ return std::tstring(); }

	virtual void			SetPort( std::tstring& strPort )	{}
	virtual std::tstring	GetPort() const						{ return std::tstring(); }

	virtual void			SetID( std::tstring& strID )		{}
	virtual std::tstring	GetID() const						{ return std::tstring(); }

	virtual void			SetPW( std::tstring& strPW )		{}
	virtual std::tstring	GetPW()	const						{ return std::tstring(); }

private:
	ITerminal*				m_pParent;
	std::tstring			m_tstrName;
};

